package com.zy

/**
 * @author zhaoyi
 * @date 2020/9/17 18:24
 */
class AA(val a: Int, val b: String) {

}

object AA {

  def apply(a: Int, b: String): AA = {
    new AA(a,b)
  }

  def unapply(aa: AA): Option[(Int, String)] = {
    if (aa == null) None else Some((aa.a,aa.b))
  }

}
